import { post } from '@/plugins/axios'
import { URL_PREFIX } from '../index'

/* 注册接口 */
export const apiRegister = data => post(URL_PREFIX + '/myapp/api/auth/register', data)

/* 登录接口 */
export const apiLogin = data => post(URL_PREFIX + '/myapp/api/auth/login', data)

/* 退出登录 */
export const apiLogout = () => post(URL_PREFIX + '/myapp/api/auth/logout')